<style>
body {
	text-align:center;
	margin:0px;
}

#staff_work_list_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;
}
#staff_work_list_menu {
	width:400px;
	padding-left:20px;
	height:auto;
	text-align:left;

	
}
#staff_work_list_top {
	width:500px;
	height:auto;
	margin-top:10px;
	padding-left:250px;
	text-align:center;
	font-family:"ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size:14px;
}


#staff_work_list_content #staff_work_list_top table {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 12px;
	text-align: center;
}
</style>
	<!--{include /service/service_head}-->
	<div id="staff_work_list_content">
	<div id="staff_work_list_menu">
		<ul style="padding-left : 8px, left : 0, ">
			${staffmanage_backend($oauthMap)}
		</ul>
	</div>
	
	<div id="staff_work_list_top">
		<form action="/service/staffWorkList.php" id="indexform" method="get">
			店舗<select name="shop_id" class="f-city">
				<option value="0">選択してください</option>
				${Utility::Option(Utility::OptionArray($shopList, 'id', 'shop_name'), $defaultShopId)}
			</select><BR><BR>
			<input type="text" name="search_date" value="${date("Y-m-d", $startTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate">～
			<input type="text" name="" value="${date("Y-m-d", $endTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate"/>
			
			<select name="time_type" class="f-city">
				<option value="0">選択してください</option>
				${Utility::Option($timeTypeList, $timeType)}
			</select>
			<input type="submit" name="" value="検索" />
		</form>
		<table border="1" cellpadding="3" cellspacing="0" width="500">
		<tr>
			<td width="90">
				スタッフ名
			</td>
			<!--{loop $interval $index $one}-->
			<td>
				${date("Y-m-d", $startTime + $index * 24 *3600)}
			</td>
			<!--{/loop}-->	
		</tr>
		<!--{loop $staffList $index $one}-->
		<tr>
			<td>
				<font size="2">{$one['family_name']} {$one['personal_name']}</font>
			</td>
			<!--{loop $workDayList[$one['id']] $index1 $one1}-->
			<td><font  size="2">
			   
				<!--{if ($one1['start_time'] != null) }-->
					(勤務時間)${date("H:i", $one1['start_time'])}--
					${date("H:i", $one1['end_time'])}<br/>
				<!--{else}-->
					(勤務時間)なし<br/>
				<!--{/if}-->
				<!--{if $absenceDayList[ $one['id'] ][$index1] != null}-->
					(臨時休み)${date("H:i", $absenceDayList[ $one['id'] ][$index1]['start_time'])}--
					${date("H:i", $absenceDayList[ $one['id'] ][$index1]['end_time'])}<br/>
				<!--{else}-->
						(臨時休み)なし<br/>
				<!--{/if}-->
				</font>
			</td>
			<!--{/loop}-->
		</tr>
		<!--{/loop}-->
		<tr>
		</tr>
		</table>
        <table style="text-align:center">
        <tr>
        <td style="font-size:18px; " width="500">
        <a href="{$searchUrl}&response_type=print" target="_blank">印刷する</a>
        </td>
        </tr>
        </table>
	</div>
	</div>
</body>
</html>
<script type="text/javascript"> 
function test(val){
	val = eval("(" +  val + ")");
	if( val.error == 0 ){
		alert( "追加しました" );
	}
}
	jQuery(function(){
		$("select[name='shop_id']").bind("change", function(){
			
			$("#indexform").submit();
		});
		new AjaxFormManager($("form[name='addWorkTime']"));
	});
</script> 
</html> 